<template>
  <div>
    <div class="goods_info">
      <h3>角色信息<span>（描述仅供参考，以截图为准）</span></h3>
      <p>{{list.user_introduction}}</p>
      <div 
        class="img_banner" 
        v-for="(banner, index) in list.banners" 
        :key="index"
        @click="imgClick(index)">
        <img :src="banner" alt="">
      </div>
    </div>
    
  </div>
</template>

<script>
import { ImagePreview } from 'vant'
export default {
  props: {
    list: {
      type: Object,
      default() {
        return {}
      }
    },
  },
  methods: {
    imgClick(index) {
      ImagePreview({
        images: this.list.banners,
        startPosition: index,
      })
    }
  },
}
</script>

<style lang="less" scoped>
.goods_info {
  margin-top: .16rem;
  box-sizing: border-box;
  width: 10rem;
  height: auto;
  background: #fff;
  padding: .266667rem .4rem 2.666667rem;
  h3 {
    margin: 0;
    font-size: .426667rem;
    span {
      font-size: .346667rem;
      font-weight: 500;
    }
  }
  p {
    font-size: .346667rem;
    line-height: .48rem;
    font-weight: 600;
  }
  .img_banner {
    padding: .266667rem 0;
    width: 9.2rem;
    img {
      // margin-bottom: .4rem;
      display: block;
      width: 9.2rem;
    }
  }
}


</style>